package com.yy.system.service;

import java.util.List;
import org.springframework.stereotype.Service;
import com.yy.base.common.service.BaseService;
import com.yy.system.entity.MenuInfo;

@Service("menusService")
@SuppressWarnings("unchecked")
public class MenusService extends BaseService {
	/*
	 * 查询菜单信息
	 */
	public List queryMenuList() {
		return dao.find("from MenuInfo where isdelete = 0 ORDER BY parentid,pos");
	}
	/*
	 * 根据ID查询菜单
	 */
    public MenuInfo selectMenu(String mId){
    	return dao.get(MenuInfo.class, mId);
    }
}
